package com.zzt.ioc.service;

import com.zzt.ioc.model.Student;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * Description
 * User: panda
 * Date: 2025-02-21
 * Time: 17:40
 */
@Service
public class UserService {
//    @Qualifier("s3")
//    @Autowired
//    private Student s1;

//    @Resource(name = "s2")
//    private Student s1;

    @Autowired
    private Student s3;

    public void print(){
        System.out.println("do Service");
        System.out.println(s3);
    }
}
